Remus: fix ia64 build
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Feb 2010 10:37:24 +0000 (10:37 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Feb 2010 10:37:24 +0000 (10:37 +0000)
This patch fixes the following error:
  /xen-unstable.hg/tools/remus/kmod/sch_queue.c: In function
  `is_foreign':
  /xen-unstable.hg/tools/remus/kmod/sch_queue.c:51: error:
  `phys_to_machine_mapping' undeclared (first use in this function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
tools/remus/kmod/sch_queue.c

index 3a6a50c39a2ae46847169bb96653c8312035ae9d..92da4a75cda19adb639a673ee59ab4879397d0f0 100644 (file)
@@ -44,12 +44,17 @@ struct tc_queue_qopt {
 };
 
 /* borrowed from drivers/xen/netback/loopback.c */
+#ifdef CONFIG_X86
 static int is_foreign(unsigned long pfn)
 {
   /* NB. Play it safe for auto-translation mode. */
   return (xen_feature(XENFEAT_auto_translated_physmap) ||
          (phys_to_machine_mapping[pfn] & FOREIGN_FRAME_BIT));
 }
+#else
+/* How to detect a foreign mapping? Play it safe. */
+#define is_foreign(pfn)        (1)
+#endif
 
 static int skb_remove_foreign_references(struct sk_buff *skb)
 {